#pragma once

#include "GLBuffer.h"

class GLVertexArray
{
public:
	GLVertexArray();
	~GLVertexArray();

	// target of buffer must be GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER
	void attach(GLBuffer* buffer, GLuint index=0, GLint size=4, GLenum type=GL_FLOAT);

	// target must be GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER
	void attach(GLenum target, GLBuffer* buffer, GLuint index=0, GLint size=4, GLenum type=GL_FLOAT);

	GLuint name;
};